package ordercode;

import java.util.Arrays;

public class SelectionOrder {
    public static void main(String[] args) {
        int[] arr = {61,53,34,12,23,67,13};
        // 先写内层,内层是操作的规则
        // 再写外层，外层控制循环几次,控制什么
        for (int j = 0; j < arr.length; j++) {
            for (int i = j+1; i < arr.length; i++) {
                if(arr[j]>arr[i]){
                    int temp = arr[j];
                    arr[j] = arr[i];
                    arr[i] = temp;
                }
            }
        }


        System.out.println(Arrays.toString(arr));
    }
}
